package com.xy.job.executor.core.job

import com.xy.job.core.enums.ScriptType
import java.time.LocalDateTime

class JobContext(
    val jobId: Long,
    val jobInstanceId: Long,
    val jobName: String,
    val jobHandlerName: String,
    val timeout: Long,
    val dataTime: LocalDateTime,
    val executeParams: String?,
    /**
     * 脚本类型
     */
    var scriptType: ScriptType? = null,
    /**
     * 脚本源代码
     */
    var scriptSource: String? = null,
    /**
     * 执行脚本的进程
     */
    var process: Process? = null,
)